<style>
    .ad-documation .textare{
        color: #1b1e21;
        font-size: 20px;
        font-weight: bold;
        text-transform:capitalize;
        letter-spacing:1px;
        margin: 20px 0;
        border: none;
        width: 100%;
        height: 45vh;
        resize:none;
    }
</style>
<!-- Page Title Start -->
<div class="row">
    <div class="col xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
        <div class="page-title-wrapper">
            <div class="page-title-box">
                <h4 class="page-title bold">查阅消息</h4>
            </div>
            <div class="breadcrumb-list">
                <ul>
                    <li class="breadcrumb-link">
                        <a href="../public/message.php?pagenow=<?=$_SESSION['messagePageNow']?>&searchvalue=<?=$_SESSION['messageSearchvalue']?>&check=<?=$_SESSION['checkCate']?>">
                            <i class="far fa-envelope"></i> 消息中心
                        </a>
                    </li>
                    <li class="breadcrumb-link active"><i class="fas fa-envelope-open-text"></i> 查阅消息</li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- Products view Start -->
<?=actMessDetailShowTips($_SESSION['actMessDetailShowTips'],$_SESSION['actMessDetailtipsType']); ?>
<div class="row">
    <!-- Styled Table Card-->
    <div class="offset-1 col-10">
        <div class="card table-card">
            <div class="card-header pb-0">
                <h3 class="bold" style="letter-spacing:3px;"><?=$messageContent[1]?></h3>
            </div>
            <div class="card-body">
                <div class="ad-documation">
                    <p><span>接收人: </span><?=$messToWhoInfo[1]?></p>
                    <textarea readonly class="textare" ><?=textsub($messageContent[2],mb_strlen($messageContent[2]))?></textarea>
                    <div>
                        <div class="row">
                            <div class="col-7 text-left mb-auto mt-auto">
                                <p><span>发送人: </span><?=$messFromWhoInfo[1]?></p>
                                <p><span>发送时间: </span><?=$messageContent[6]?></p>
                            </div>
                            <? if($_SESSION['checkCate']!='trash'&&$messageContent[3]!=$_SESSION['loginId']){?>
                            <div class="col-5 text-right mb-auto mt-auto">
                                <div class="btn-group" role="group" aria-label="Basic example">
                                    <form method="get" action="./sendmess.php">
                                        <input type="hidden" name="dealwitharray" value="<?=$messageContent[0]?>">
                                        <button class="btn btn-info btn flat-btn" type="submit" name="action" value="reply"><i class="fas fa-pen-alt"></i> 回复</button>
                                    </form>
                                    <form method="get" action="./sendmess.php">
                                        <input type="hidden" name="dealwitharray" value="<?=$messageContent[0]?>">
                                        <button class="btn btn-warning btn flat-btn" type="submit" name="action" value="forward"><i class="fas fa-reply"></i> 转发</button>
                                    </form>
                                    <? if($messageContent[5]==1){?>
                                    <form method="post" action="">
                                        <input type="hidden" name="messageID" value="<?=$messageContent[0]?>" >
                                        <input type="hidden" name="action" value="unstar" >
                                        <input type="hidden" name="dealwitharray" value="<?=$messageContent[0]?>" >
                                        <button class="btn btn-success btn flat-btn" type="submit" data-original-title="" title="">
                                            <span class="text-light"><i class="fas fa-star starred"></i></span> 取消收藏
                                        </button>
                                        <?}else{?>
                                    <form method="post" action="">
                                        <input type="hidden" name="messageID" value="<?=$messageContent[0]?>" >
                                        <input type="hidden" name="action" value="star" >
                                        <input type="hidden" name="dealwitharray" value="<?=$messageContent[0]?>" >
                                        <button class="btn btn-success btn flat-btn" type="submit" data-original-title="" title="">
                                        <span class="mail-important">
                                            <i class="far fa-star"></i> 收藏
                                        </span>
                                        </button>
                                        <?}?>
                                    </form>
                                    <button class="btn btn-danger btn flat-btn" type="button" onclick="actMessDetail('move','<?=$messageContent[0]?>')">
                                        <i class="fas fa-trash"></i> 删除
                                    </button>
                                </div>
                            </div>
                            <? } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
				